﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace WMS.Seven.Models
{
    public class Warehouse:Entity<int>
    {
        [Key]
        public int Id { get; set; }

        [Required]
        [MaxLength(50)]
        public string WarehouseCode { get; set; }

        [Required]
        [MaxLength(50)]
        public string WarehouseName { get; set; }

        [Required]
        public DateTime LeaseTime { get; set; }

        [Required]
        [MaxLength(50)]
        public string WarehouseType { get; set; }

        [Required]
        public int Status { get; set; }

        public bool IsDefault { get; set; }

        [MaxLength(100)]
        public string Address { get; set; }

        public double Area { get; set; }

        [MaxLength(30)]
        public string ContactPerson { get; set; }

        [MaxLength(20)]
        public string Phone { get; set; }

        [MaxLength(20)]
        public string Creator { get; set; }

        public DateTime CreateTime { get; set; }

        [MaxLength(20)]
        public string Modifier { get; set; }

        public DateTime ModifyTime { get; set; }
    }
}
